﻿<controls:ChildWindow x:Class="SpeedTestReports.LoginForm" x:Name="FormLogin"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="300" Height="200" 
           Title="Login"
           HasCloseButton="False"
           Loaded="FormLogin_Loaded">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="100"/>
            <ColumnDefinition Width="100"/>
            <ColumnDefinition Width="100"/>
        </Grid.ColumnDefinitions>
        <TextBlock Margin="4,4,4,4" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center">User Name</TextBlock>
        <TextBlock Margin="4,4,4,4" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Right" VerticalAlignment="Center">Password</TextBlock>
        <TextBox x:Name="txtUserName" MaxLength="40" Width="150" Height="23" Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Left" VerticalAlignment="Center"></TextBox>
        <PasswordBox x:Name="txtPassword" MaxLength="40" Width="150" Height="23" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" HorizontalAlignment="Left" VerticalAlignment="Center"></PasswordBox>
        <StackPanel Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3">
            <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">    
                <Button x:Name="btnOk" Content="Log In" Click="btnOK_Click" Width="75" Height="23" Margin="10,3,10,3"/>
            </StackPanel>
            <StackPanel HorizontalAlignment="Center" Orientation="Vertical">
            <TextBlock x:Name="lblStatus" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="Red" Height="18"></TextBlock>
            <CheckBox x:Name="chkRememberMe" Content="Remember Me"  Height="18" VerticalAlignment="Center"></CheckBox>
            </StackPanel>
            <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
                <HyperlinkButton x:Name="btnForgotPassword" Click ="btnForgotPassword_Click" Content="Forgot Password" BorderThickness="0" VerticalAlignment="Center" Margin="0,0,10,0"></HyperlinkButton>
                <HyperlinkButton x:Name="btnRegister" Click="btnRegister_Click" Content="Register" BorderThickness="0" VerticalAlignment="Center" Margin="10,0,0,0"></HyperlinkButton>
            </StackPanel>
        </StackPanel>
    </Grid>
</controls:ChildWindow>